import ThemeContext from "./context/theme-context"

export default function ThemeHoc(OriginComponent) {
  return (props) => (
    <ThemeContext.Consumer>
      {(value) => <OriginComponent {...value} {...props} />}
    </ThemeContext.Consumer>
  )
}
